package wifiunion.com.notice.model;

import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Member;
import java.util.HashMap;

import wifiunion.com.notice.BaseCallBack;
import wifiunion.com.notice.Constants;
import wifiunion.com.notice.HomePageDetailContact;
import wifiunion.com.notice.HttpUtils;
import wifiunion.com.notice.entity.HomePageConfigure;
import wifiunion.com.notice.entity.LoginMember;
import wifiunion.com.notice.entity.User;

/**
 * Created by Administrator on 2018/7/29.
 */

public class HomepageModel implements HomePageDetailContact.Model {
    @Override
    public void loadData(String url, HashMap<String, Object> params, BaseCallBack callBack) {

    }


    public void getUserRequest(HashMap<String, Object> param, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_MEMBERDETAIL, param,
                callBack, new TypeToken<LoginMember>() {
                }.getType());
    }

    public void getHomepageRequest(HashMap<String, Object> param, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_CONFIGURE, param,
                callBack, new TypeToken<HomePageConfigure>() {
                }.getType());
    }
}
